.class public Lcn/cheln/explorer/util/PackageReceiver;
.super Landroid/content/BroadcastReceiver;


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 0

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 2

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    invoke-static {p1}, Lcn/cheln/explorer/func/a;->a(Landroid/content/Context;)V

    sget-object v0, Lcom/direction/hold/ui/CountActivity;->v:Lcom/direction/hold/ui/CountActivity;

    if-eqz v0, :cond_1

    sget-object v0, Lcom/direction/hold/ui/CountActivity;->v:Lcom/direction/hold/ui/CountActivity;

    const-class v1, Lcom/direction/hold/ui/FileCursorActivity;

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/CountActivity;->c(Ljava/lang/String;)Lcn/cheln/explorer/ui/b;

    move-result-object v0

    invoke-virtual {v0}, Lcn/cheln/explorer/ui/b;->d()V

    :cond_1
    return-void
.end method
